﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<configSections>
		<section name="unity"
			type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" >
		</section>
	</configSections>
	<unity>
		<typeAliases>
			<typeAlias alias="Singleton" type="Microsoft.Practices.Unity.ContainerControlledLifetimeManager, Microsoft.Practices.Unity"/>
			<typeAlias alias="IGestorPedidos" type="LibreriaGestion.IGestorPedidos, LibreriaGestion"/>
			<typeAlias alias="IGestorStocks" type="LibreriaGestion.IGestorStocks, LibreriaGestion"/>
			<typeAlias alias="IGestorAlmacen" type="LibreriaGestion.IGestorAlmacen, LibreriaGestion"/>
			<typeAlias alias="IVisorInforme" type="LibreriaGestion.IVisorInforme, LibreriaGestion"/>
			<typeAlias alias="IGeneradorInforme" type="LibreriaGestion.IGeneradorInforme, LibreriaGestion"/>

			<typeAlias alias="GestorPedidos" type="LibreriaGestion.GestorPedidos, LibreriaGestion"/>
			<typeAlias alias="GestorStocks" type="LibreriaGestion.GestorStocks, LibreriaGestion"/>
			<typeAlias alias="GestorAlmacen" type="LibreriaGestion.GestorAlmacen, LibreriaGestion"/>
			<typeAlias alias="VisorConsola" type="LibreriaGestion.VisorConsola, LibreriaGestion"/>
			<typeAlias alias="VisorFichero" type="LibreriaGestion.VisorFichero, LibreriaGestion"/>
			<typeAlias alias="GeneradorInformesDetallado" type="LibreriaGestion.GeneradorInformesDetallado, LibreriaGestion"/>
			<typeAlias alias="GeneradorInformesSimple" type="LibreriaGestion.GeneradorInformesSimple, LibreriaGestion"/>
		</typeAliases>
		<containers>
			<container name="Contenedor">
				<types>
					<type type="IGestorPedidos" mapTo="GestorPedidos"/>
					<type type="IGestorStocks" mapTo="GestorStocks"/>
					<type type="IGestorAlmacen" mapTo="GestorAlmacen"/>
					<type type="IVisorInforme" mapTo="VisorConsola"/>
					<type type="IVisorInforme" mapTo="VisorConsola" name="Consola"/>
					<type type="IVisorInforme" mapTo="VisorFichero" name="Fichero"/>
					<type type="IGeneradorInforme" mapTo="GeneradorInformesDetallado" />
					<type type="IGeneradorInforme" mapTo="GeneradorInformesDetallado" name="Detallado" />
					<type type="IGeneradorInforme" mapTo="GeneradorInformesSimple" name="Simple" />
				</types> 
			</container>
		</containers>
	</unity>
</configuration>